/*********************************************************************
 *
 *  elksip - a multi-platform Sip Phone Server
 *
 *  file: sip.h 
 *
 *  Copyright 2011-2013 Elksip.
 *
 ********************************************************************/
#ifndef _SIP_H_
#define _SIP_H_

#ifndef WIN32
#include <sys/socket.h>
#else
#include <windows.h>
#endif

#define SIP_MESSAGE_MAX_LENGTH 1300

#define RET_SUCCESS               0
#define RET_UNDEFINED_ERROR      -1
#define RET_BADPARAMETER         -2
#define RET_SIP_ERR_MSG         (-3)


#include "sip_str.h"
#include "elk_list.h"


#include "via_parse.h"
#include "contact.h"
#include "www_auth.h"
#include "sip_msg.h"

int sip_message_trying(const Sip_Message *msg, Sip_Message *msg_trying);

int Sip_handle_verify(const Sip_Message * msg);
int  Regmsg(char *msg, const char* user, const char* server, const char* localIP);
int handle_msg( Sip_Message * msg);


#endif
